using System.ComponentModel.DataAnnotations;

namespace ZR.Model.Dto
{
    /// <summary>
    /// 生成配置查询对象
    /// </summary>
    public class GenConfigQueryDto : PagerInfo 
    {
        public int InitialValueTop { get; set; }

        public int UpDownInterval { get; set; }

        public int LeftRightInterval { get; set; }

        public int Height { get; set; }

        public int ColumnWidth { get; set; }

        public string FontName { get; set; }

        public int FontSize { get; set; }

        public int NumberColumns { get; set; }

        public string ConfigName { get; set; }

        public int Enabled { get; set; }

        public string CreateBy { get; set; }

        public int  Arrangement { get; set; }

    }

    /// <summary>
    /// 生成配置输入输出对象
    /// </summary>
    public class GenConfigDto
    {

        public int Id { get; set; }

        [Required(ErrorMessage = "Top初始值不能为空")]
        public int InitialValueTop { get; set; }

        [Required(ErrorMessage = "上下间隔不能为空")]
        public int UpDownInterval { get; set; }

        [Required(ErrorMessage = "左右间隔不能为空")]
        public int LeftRightInterval { get; set; }

        [Required(ErrorMessage = "高度不能为空")]
        public int Height { get; set; }

        [Required(ErrorMessage = "输入框宽度不能为空")]
        public int ColumnWidth { get; set; }

        public string FontName { get; set; }

        [Required(ErrorMessage = "字号不能为空")]
        public int FontSize { get; set; }

        [Required(ErrorMessage = "一行显示列不能为空")]
        public int NumberColumns { get; set; }

        [Required(ErrorMessage = "配置名称不能为空")]
        public string ConfigName { get; set; }

        public int Enabled { get; set; }

        public string Remark { get; set; }

        public int Arrangement { get; set; }



    }
}